.class Lcom/estrongs/android/pop/app/diskusage/c$c$a;
.super Ljava/lang/Object;
.source "DiskUsageGridViewWrapper.java"

# interfaces
.implements Ljava/io/FileFilter;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/diskusage/c$c;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/view/v;

.field final synthetic b:Lcom/estrongs/android/pop/app/diskusage/c$c;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/diskusage/c$c;Lcom/estrongs/android/view/v;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/diskusage/c$c$a;->b:Lcom/estrongs/android/pop/app/diskusage/c$c;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/diskusage/c$c$a;->a:Lcom/estrongs/android/view/v;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public accept(Ljava/io/File;)Z
    .locals 7

    .line 1
    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/diskusage/c$c$a;->b:Lcom/estrongs/android/pop/app/diskusage/c$c;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/diskusage/c$c;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    const/4 v3, 0x0

    if-eqz v2, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 3
    invoke-virtual {v2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    return v3

    :cond_1
    const-string v4, "/mnt/"

    .line 4
    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    const-string v6, "/mnt"

    if-eqz v5, :cond_2

    .line 5
    invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 6
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    return v3

    .line 7
    :cond_2
    invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 8
    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 9
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    return v3

    .line 10
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/diskusage/c$c$a;->a:Lcom/estrongs/android/view/v;

    new-instance v1, Lcom/estrongs/fs/impl/local/d;

    const/4 v2, 0x0

    invoke-direct {v1, v2, p1, v3}, Lcom/estrongs/fs/impl/local/d;-><init>(Landroid/net/LocalSocket;Ljava/io/File;Z)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/v;->a(Lcom/estrongs/fs/g;)Z

    move-result p1

    if-nez p1, :cond_4

    return v3

    :cond_4
    const/4 p1, 0x1

    return p1
.end method
